﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BrnMall.Sdk.WeiXin.Domain.work
{
    public class OauthUser
    {
        public int errcode { get; set; }

        public string errmsg { get; set; }
        /// <summary>
        /// 企业成员的userid(用户为企业成员时才返回，其他情况不返回，并且errcode=0)
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 授权的企业
        /// </summary>
        public string CorpId { get; set; }

        public string DeviceId { get; set; }

        /// <summary>
        /// 不属于任何企业时，返回此标识
        /// </summary>
        public string OpenId { get; set; }

        public string user_ticket { get; set; }
        
        public int expires_in { get; set; }
    }
}
